<template>
  <div v-bind="attr">
    <Body :body="schema.body" />
  </div>
</template>

<script setup>
import Body from '../body/index.vue'
import { filterAttrByInclude } from '../../common/util'
defineOptions({ name: 'PageCom' })

const props = defineProps({
  schema: {
    type: Object,
    required: true
  }
})
const _schema = props.schema

const attr = filterAttrByInclude(['style'], _schema)
</script>
